#ifndef CREATEITEM_H
#define CREATEITEM_H
#include <QDialog>

class QLabel;
class QLineEdit;
class QPushButton;

class CreateItem : public QDialog
{
	Q_OBJECT
		public:
	CreateItem(QWidget *parent = 0);

private slots:
	void saveCurrent();
	void setId(const QString &);
	void setName(const QString &);
	void setPic(const QString &);
	void setDesc(const QString &);



private:
	// All the layout elements
	QLabel *id;
	QLabel *name;
	QLabel *pic;
	QLabel *desc;
	QLineEdit *idEdit;
	QLineEdit *nameEdit;
	QLineEdit *picEdit;
	QLineEdit *descEdit;
	QPushButton *saveButton;

	// Warning boxes
	bool overwrite();
	void loadError();

	//Variables to contain user input
	std::string inputId;
	std::string inputName;
	std::string inputPic;
	std::string inputDesc;

};

#endif
